package com.mycompany.server;

/**
 *
 * @author artyukhov
 */
public class Job implements Container {

    private final String name;
    private final Session owner;

    public Job(String name, Session owner) {
        this.name = name;
        this.owner = owner;
    }

    public String getOwnerName() {
        return owner.getUserName();
    }

    public String getName() {
        return name;
    }

    public Session getOwner() {
        return owner;
    }

    @Override
    public void addSession(Session session) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void removeSession(Session session) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
